package org.example.book.entity;

//@Data
public class Book {
    private Long id;
    private String name;
    private String type;
    private String information;


    // 无参构造函数
    public Book() {}

    // 全参构造函数
    public Book(Long id, String name, String type,  String information) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.information = information;
    }

    // Getter 和 Setter 方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getInformation() {
        return information;
    }

    public void setInformation(String information) {
        this.information = information;
    }
}
